<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员列表</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
function editmember(){
	var iframe = $(this.iframe).contents();	 
	iframe.find("#editsubmit").click();
	return false;
}
function addMember(){
	var iframe = $(this.iframe).contents();	 
	iframe.find("#addsubmit").click();
	return false;
}

</script>
</head>
<body>
<div id="main_frame">	
	
	<div id="pagemenu"><a href="member!getMemberListByPage.action" title="会员列表" class="selected">会员列表</a>|<a href="add.jsp">添加会员</a></div>
	<div class="listbox">	
	<table class="listtab"  align="center">
		<thead>
			<tr>
				<th width="42"><span class="mline"><input type="checkbox" name="checkbox" id="checkbox" onclick="selectall(this);" /></span></th>
				<th><span class="mline">会员名</span></th>
				<th><span class="mline">邮箱</span></th>				
				<th width="160"><span class="mline">注册时间</span></th>
				<th width="160"><span class="mline">最后登录</span></th>
				<th width="120">管理操作</th>
			</tr>
		</thead>
		<tbody>	
		
		<s:iterator value="members" >
			<tr>
				<td><input type="checkbox" name="checkbox" value=${id } class="ckbox"/></td>
				<td>${name }</td>
				<td>${email }</td>
				<td><s:date name="regTime" format="yyyy-MM-dd HH:mm:ss"/></td>
				<td><s:date name="lastLoginTime" format="yyyy-MM-dd HH:mm:ss"/></td>
				<td><a href="member!findInfoById.action?id=${id } " title="修改会员" class="abg">修改</a>
					<a href="member!deleteByIds.action?ids=${id } " title="删除" onclick="return delete_confirm();" class="abg">删除</a></td>
			</tr>
			</s:iterator>
		</tbody>
	</table>
	</div>
</div>
<div id="bottombar">
	<div class="fl"><span><a onclick="selectall(true);" href="javascript:void(0);">全选</a>/<a onclick="selectall(false);" href="javascript:void(0);">取消</a></span><a href="javascript:void(0);" onclick="remove('member!deleteByIds.action');" title="删除" class="addsource">删除</a></div>
	<div class="fr listpage">${pagination}</div>
</div>
</body>
</html>